package com.itmk.business.articleCategory.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itmk.business.articleCategory.entity.ArticleCategory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ArticleCategoryMapper extends BaseMapper<ArticleCategory> {
    @Select("select ac.id as id, " +
            "ac.category as category, " +
            "ac.detail as detail " +
            "from article_category as ac " +
            "where  ac.category = #{userId}")
    ArticleCategory getCategoryByname(String categoryname);
}
